#ifndef N1MEMORY_H_2009_10_07
#define N1MEMORY_H_2009_10_07

#include "N0Lib.h"

#ifdef WINDOWS
#include <malloc.h>
#else
#include <memory.h>
#endif

void*   N1Malloc(size_t size);
void    N1Free(void *memblock);

template<typename T>
T* N1Malloc()
{
   return static_cast<T*>( N1Malloc( sizeof(T) ) );
}

#endif //N1MEMORY_H_2009_10_07
